﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserAddLink.Aspx.cs" Inherits="UserAddLink" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>申请友情链接</title>
    <style>
        table,tr,td{font-size:12px;}
    </style>
<script LANGUAGE="javascript">
<!--
function Check() {
if (document.AddLink.SiteName.value=="")
	{
	  alert("请输入网站名称！")
	  document.AddLink.SiteName.focus()
	  return false
	 }
if (document.AddLink.SiteUrl.value=="")
	{
	  alert("请输入网站地址！")
	  document.AddLink.SiteUrl.focus()
	  return false
	 }
if (document.AddLink.SiteUrl.value=="http://")
	{
	  alert("请输入网站地址！")
	  document.AddLink.SiteUrl.focus()
	  return false
	 }
if (document.AddLink.SiteAdmin.value=="")
	{
	  alert("请输入站长姓名！")
	  document.AddLink.SiteAdmin.focus()
	  return false
	 }
if (document.AddLink.Email.value=="")
	{
	  alert("请输入电子邮件地址！")
	  document.AddLink.Email.focus()
	  return false
	 }
if (document.AddLink.Email.value=="@")
	{
	  alert("请输入电子邮件地址！")
	  document.AddLink.Email.focus()
	  return false
	 }
if (document.AddLink.SitePassword.value=="")
	{
	  alert("请输入网站密码！")
	  document.AddLink.SitePassword.focus()
	  return false
	 }
if (document.AddLink.SitePwdConfirm.value=="")
	{
	  alert("请输入确认密码！")
	  document.AddLink.SitePwdConfirm.focus()
	  return false
	 }
if (document.AddLink.SitePwdConfirm.value!=document.AddLink.SitePassword.value)
	{
	  alert("网站密码与确认密码不一致！")
	  document.AddLink.SitePwdConfirm.focus()
	  document.AddLink.SitePwdConfirm.select()
	  return false
	 }
if (document.AddLink.SiteIntro.value=="")
	{
	  alert("请输入网站简介！")
	  document.AddLink.SiteIntro.focus()
	  return false
	 }
}

//-->
</script>    
</head>
<body>
    <form id="form1" runat="server">
    <div>
<table border="0" cellpadding="0" cellspacing="1" style='border:1px solid #CCCCCC' align="center" width="600" class="border">
    <tr align="center"> 
      <td height="22" colspan="2" class="title"><strong>申 请 友 情 链 接</strong></td>
    </tr>
    <tr class="tdbg"> 
      <td width="100" height="25" align="right">链接类型：</td>
      <td height="25">
          <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatColumns="2">
              <asp:ListItem Value="1">Logo链接</asp:ListItem>
              <asp:ListItem Value="2">文字链接</asp:ListItem>
          </asp:RadioButtonList>
          <asp:RequiredFieldValidator 
              ID="RequiredFieldValidator7" runat="server" 
              ErrorMessage="请选择友情链接类型" ControlToValidate="RadioButtonList1" 
              Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr class="tdbg"> 
      <td width="100" height="25" align="right" valign="middle">网站名称：</td>
      <td height="25"> 
          <asp:TextBox ID="Txt_webName" runat="server" Width="203px"></asp:TextBox>
&nbsp;<font color="#FF0000">*</font><asp:RequiredFieldValidator 
              ID="RequiredFieldValidator1" runat="server" 
              ErrorMessage="网站名称不能为空" ControlToValidate="Txt_webName" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr class="tdbg"> 
      <td width="100" height="25" align="right">网站地址：</td>
      <td height="25"> 
          <asp:TextBox ID="Txt_Url" runat="server" Width="198px"></asp:TextBox>
&nbsp;<font color="#FF0000">*<asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
              runat="server" ErrorMessage="网站Url地址不能为空" ControlToValidate="Txt_Url" 
              Display="Dynamic"></asp:RequiredFieldValidator>
          </font></td>
    </tr>
    <tr class="tdbg" id="LogoRow" > 
      <td width="100" height="25" align="right">网站Logo：</td>
      <td height="25"> 
          <asp:TextBox ID="Txt_Logo" runat="server" Width="196px"></asp:TextBox>
&nbsp;大小必须是88*31<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
              ErrorMessage="网站Logo不能为空" ControlToValidate="Txt_Logo" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr class="tdbg"> 
      <td width="100" height="25" align="right">站长姓名：</td>
      <td height="25"> 
          <asp:TextBox ID="Txt_Master" runat="server" Width="194px"></asp:TextBox>
&nbsp;<font color="#FF0000">*<asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
              runat="server" ErrorMessage="站长姓名不能为空" ControlToValidate="Txt_Master" 
              Display="Dynamic"></asp:RequiredFieldValidator>
          </font></td>
    </tr>
    <tr class="tdbg"> 
      <td width="100" height="25" align="right">电子邮件：</td>
      <td height="25"> 
          <asp:TextBox ID="Txt_Email" runat="server" Width="199px"></asp:TextBox>
&nbsp;</td>
    </tr>
    <tr class="tdbg"> 
      <td width="100" align="right">网站简介：</td>
      <td valign="middle"> 
          <asp:TextBox ID="Txt_Readme" runat="server" Height="87px" TextMode="MultiLine" 
              Width="301px" MaxLength="200"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
              ErrorMessage="网站简介不能为空" ControlToValidate="Txt_Readme" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr class="tdbg"> 
      <td height="40" colspan="2" align="center"><input name="Action" type="hidden" id="Action" value="Reg"> 
          <asp:Button ID="Button1" runat="server" Text="立即申请" onclick="Button1_Click" />
&nbsp;&nbsp;&nbsp; 
      </td>
    </tr>
  </table>
    
    </div>
    </form>
</body>
</html>
